<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Admin_logs extends a_base {
    public function index($name) {
        $page = isset($_GET['page']) ? $_GET['page'] : 1; //当前页
        $cntArr = $this->m_public->getRowInfo('config', array(), 'count(1) as cnt');
        $arr = array(
            'page' => $page, //当前页
            'page_size' => 10, //分页总大小
            'total' => $cntArr['cnt']//总记录数
        );
        $data['pagination'] = new pagination($arr);
        $this->load->view('config/index', $data);
    }

    public function config_add() {
        $this->load->view('config/config_add');
    }

    public function config_action_add() {
        $data = $this->input->post();
        print_r($data);
    }

}
